home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
UTILITY
/
TASEXAM6.ARJ
/
TRUE.TAS
< prev
next >
Wrap
Text File
|
1991-12-31
|
2KB
|
49 lines
{ Written by Jim Camenos, May 31, 1991, Prodigy code VNGH10A
This program attempts to determine the True Trading Range over the past
3 months. It then calculates the standard deviation of the range and
calculates the number and percentage the True Trading Range occurred
within 1 standard deviation, 2 standard deviations, 3 standard deviations
and over. The higher % in 1 standard deviation, eg, 90%++, indicates
the underlying equity to be non-volitable. Higher percentages in 2,3 or
over 3 standard deviations are more volitable issues. Stocks trading high
% in their 1 std deviation will be trading options with lower premium than
those with lower percentages. Interesting that AMGN average True Trading
Range for the past 3 months is $5 and has traded 87% within its 1 std
deviation and 9% within 2 std deviations. The std deviation is $3, therefore
AMGN would have a trading range between $2-$8 daily and 9% or 1 out of every
11 trading days the range would be in a $12 range. Check the TAS referance
manual for the definition of True Trading Range.
}
#max_quotes 67
#OUTPUT_FILE 'TRUE.LST'
tx: array;
tx=TR();
x := quote_count-1; { load max(66,num of quotes in file) MM 6/5}
avg_tr = sum(tx,x)/x;
sd = std(tx,x);
gosub true_range;
if first_ticker then
begin
writeln('Read your charts before making any investment decisions\n\n');
writeln(' Trading 1 STD 1 STD() 2 3 3+');
writeln(' Range Dev Days 0/0 STD STD STD');
end;
writeln(ticker,' ',fullname,avg_tr,' ',sd,int(sd1),' ',int((sd1/x)*100),'%',int((sd2/x)*100),'%',int((sd3/x)*100),'%',int((sd4/x)*100),'%');
return;
:true_range
begin
a = 1;
sd1 = 0;
sd2 = 0;
sd3 = 0;
sd4 = 0;
:true_r
if a > x then return;
if (avg_tr-sd) <= tx[a] and ((avg_tr+sd)>=tx[a]) then sd1 = sd1+1 else
if (avg_tr-(sd*2))<=tx[a] and ((avg_tr+(sd*2))>=tx[a]) then sd2=sd2+1 else
if (avg_tr-(sd*3))<=tx[a] and ((avg_tr+(sd*3))>=tx[a]) then sd3=sd3+1 else
sd4 = sd4+1;
a = a+1;
goto true_r;
end;